package org.jeecg.modules.iot.model;

import lombok.Data;

import java.sql.Timestamp;

@Data
public class LocationJson {
    private Double lat;
    private Double lng;
    private Timestamp ts;
    private Integer speed; //速度 2字节
    //总计里程
    private Float  mileage;
    // 添加构造函数
    public LocationJson(Double lat, Double lng) {
        this.lat = lat;
        this.lng = lng;
    } // 添加构造函数
    public LocationJson(Double lat, Double lng, Timestamp ts, Integer speed, Float  mileage) {
        this.lat = lat;
        this.lng = lng;
        this.ts = ts;
        this.speed = speed;
        this.mileage = mileage;
    }
}
